package com._数组Demo1;

import java.util.Scanner;

public class Test10 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] arr = new int[3];
        for (int i = 0; i < arr.length; i++) {
            System.out.println("请输入"+(i+1)+"个整数");
            arr[i] = sc.nextInt();

        }
        System.out.println("录入完毕，结果如下");
        for (int i = 0; i <arr.length; i++) {
            System.out.println(arr[i]);

        }
    }
}
